﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<Fashion.Models.Model.PropertyNameModel>" %>
<%
    Html.EnableClientValidation();%>
<%using (Html.BeginForm()){%>
<table border="0" cellpadding="0" cellspacing="0">
    <tr>
        <td>
            Name
        </td>
        <td>
            <%:Html.TextBoxFor(i => i.Name, new { @class="textbox"})%>
            <%:Html.ValidationMessageFor(i => i.Name)%>
        </td>
    </tr>
    <tr>
        <td>
            Unit
        </td>
        <td>
            <%:Html.TextBoxFor(i => i.Unit)%>
            <%:Html.ValidationMessageFor(i => i.Unit)%>
        </td>
    </tr>
    <tr>
        <td>
            IsValueStatic
        </td>
        <td>
            <%:Html.CheckBoxFor(i => i.IsValueStatic)%>
            <%:Html.ValidationMessageFor(i => i.IsValueStatic)%>
        </td>
    </tr>
    <tr>
        <td>
            IsMultiValue
        </td>
        <td>
            <%:Html.CheckBoxFor(i => i.IsMultiValue)%>
            <%:Html.ValidationMessageFor(i => i.IsMultiValue)%>
        </td>
    </tr>
    <tr>
        <td>
        </td>
        <td>
            <input type="submit" name="" value="Submit" />
        </td>
    </tr>
</table>
<%}%>